#pragma once
#include <vector>
#include <map>
#include <string>

using namespace std;

struct Config {
    int    version         = 1;
    float  ratioPopulation = 0.5;
    float  ratioArea       = 0.5;
    int    maxDebt         = 90;
    int    loop            = 1000;
    int    port            = 8081;
    int    maxLandNum      = 10;
    int    tpLandRange     = 10;
    string DBPath          = "./plugins/XDream/DB/";
    string WebPath         = "./plugins/XDream/Web";
    string occupyMode      = "2D";
    string occupyItem      = "wooden_axe";

    vector<string> messType   = {"留言","入驻申请"};
    vector<string> useItems   = {"不操作","全部允许","全部禁用","弩","蛋","书","弓","火焰弹","烟花","钓鱼竿","骨","桶","镐","锹","剑","斧头","锄头","拴绳","唱片","打火石","玻璃瓶","生物蛋","命名牌","刷怪笼"};
    vector<string> useBlocks  = {"不操作","全部允许","全部禁用","熔炉","箱子","按钮","木桶","铁砧","信标","讲台","拉杆","高炉","磁石","漏斗","营火","蛋糕","花盆","TNT","床","门","栅栏门","活板门","工作台","酿造台","制图台","炼药锅","栅栏门","告示牌","活板门","堆肥桶","唱片机","织布机","音符盒","抛投器","制箭台"};
    vector<string> useEntitys = {"不操作","全部允许","全部禁用","船","猫","鸡","狼","骡","羊","牛","马","猪","傀儡","村民","矿车","盔甲架"};

    map<string, int> itemRealType = {
        {"留言"    ,0},
        {"入驻申请",1}
    };
    map<string, string> itemRealName = {
        {"不操作"     ,"null"},
        {"全部禁用"   ,"none"},
        {"全部允许"   ,"all"},
        {"床"        ,"bed"},
        {"门"        ,"door"},
        {"画"        ,"painting"},
        {"熔炉"      ,"furnace"},
        {"箱子"      ,"chest"},
        {"按钮"      ,"button"},
        {"木桶"      ,"barrel"},
        {"铁砧"      ,"anvil"},
        {"信标"      ,"beacon"},
        {"讲台"      ,"lectern"},
        {"拉杆"      ,"lever"},
        {"高炉"      ,"blast_furnace"},
        {"磁石"      ,"lodestone"},
        {"漏斗"      ,"hopper"},
        {"营火"      ,"campfire"},
        {"蛋糕"      ,"cake"},
        {"花盆"      ,"flower_pot"},
        {"TNT"       ,"tnt"},
        {"工作台"    ,"crafting_table"},
        {"酿造台"    ,"brewing_stand"},
        {"制图台"    ,"cartography_table"},
        {"炼药锅"    ,"cauldron"},
        {"栅栏门"    ,"gate"},
        {"告示牌"    ,"sign"},
        {"活板门"    ,"trapdoor"},
        {"堆肥桶"    ,"composter"},
        {"唱片机"    ,"jukebox"},
        {"织布机"    ,"loom"},
        {"音符盒"    ,"noteblock"},
        {"抛投器"    ,"dropper"},
        {"制箭台"    ,"fletching_table"},
        {"阳光探测器" ,"daylight_detector"},
        {"物品展示框" ,"frame"},
        {"红石比较器" ,"comparator"},

        {"弩"        ,"crossbow"},
        {"蛋"        ,"egg"},
        {"书"        ,"book"},
        {"弓"        ,"bow"},
        {"雪球"      ,"snowball"},
        {"三叉戟"    ,"thrown_trident"},
        {"火焰弹"    ,"fire_charge"},
        {"烟花"      ,"firework"},
        {"钓鱼竿"    ,"fishing_rod"},

        {"骨"        ,"bone"},
        {"桶"        ,"bucket"},
        {"镐"        ,"pickaxe"},
        {"锹"        ,"shovel"},
        {"剑"        ,"sword"},
        {"斧头"      ,"axe"},
        {"锄头"      ,"hoe"},
        {"拴绳"      ,"lead"},
        {"唱片"      ,"music_disc"},
        {"打火石"    ,"flint_and_steel"},
        {"玻璃瓶"    ,"glass_bottle"},
        {"生物蛋"    ,"spawn"},
        {"命名牌"    ,"name_tag"},
        {"刷怪笼"    ,"mob_spawner"},

        {"船"        ,"boat"},
        {"猫"        ,"cat"},
        {"鸡"        ,"chicken"},
        {"狼"        ,"wolf"},
        {"骡"        ,"mule"},
        {"羊"        ,"sheep"},
        {"牛"        ,"cow"},
        {"马"        ,"horse"},
        {"猪"        ,"pig"},
        {"傀儡"      ,"golem"},
        {"村民"      ,"villager"},
        {"矿车"      ,"minecart"},
        {"盔甲架"    ,"armor_stand"}
    };
};